const express = require('express');
const compression = require('compression');
const app = express();

app.use(compression());  // 这行代码要写在 静态资源托管之前
app.use(express.static('./dist'));  // 静态资源托管

app.listen(5678,()=>{
    console.log('server running at http://127.0.0.1:5678');
});